<?php
$list = FontHelper::get_font_list();
?>
<div class="filters">
    <a class="btn btn-primary" href="<?php echo Common::httpUri('/upload'); ?>">Upload New Font</a>
</div>
<h3>Uploaded Font</h3>
<table class="table table-bordered table-striped table-hover table-grid" border="0" width="100%" cellpadding="0" cellspacing="0">
    <thead class="g-head">
        <tr>
            <th>Font Name</th>
            <th class="cell-func"></th>
        </tr>
    </thead>
    <?php foreach($list as $row) {?>
    <tr class="g-row g-row-odd">
        <td class="g-cell"><?php echo $row['name']; ?></td>
        <td class="cell-func"><a href="<?php echo Common::httpUri('/example', null, array('name' => $row['name'])); ?>" target="_blank" class="btn btn-default">Sample Code</a></td>
    </tr>
    <?php } ?>
</table>